home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / drgnsmth.cpt / Dragonsmith 1.1 / Base files / Utilities / AppleEventUtils.c next >
Encoding:
C/C++ Source or Header  |  1992-10-10  |  967 b   |  36 lines

  1. /*
  2.     AppleEventUtils.c
  3.     
  4.     Functions to simplify Apple event processing
  5.     
  6.     Copyright ⌐ 1992 by Paul M. Hoffman
  7.     Send feedback to paul.hoffman@um.cc.umich.edu
  8.     
  9.     This source code may be freely used, altered, and distributed in any way as long as:
  10.         1.    It is GIVEN away rather than sold (except as expressly permitted by the author)
  11.         2.    This statement and the above copyright notice are left intact.
  12.     
  13.     Created    11 Jul 1992    Extracted GetFSSpecsFromAEDescList from Dragon.c
  14.     Modified    12 Sep 1992    Removed GetFSSpecsFromAEDescList ╤ it's no longer needed in Dragonsmith
  15.     
  16. */
  17.  
  18. #include    "AppleEventUtils.h"
  19. #include    "HandleUtils.h"
  20.  
  21. OSErr GotRequiredParams (AppleEvent *theEvent)
  22. {
  23.     DescType    returnedType;
  24.     long            actualSize;
  25.     OSErr        err;
  26.     
  27.     err = AEGetAttributePtr (theEvent, keyMissedKeywordAttr, typeWildCard, &returnedType, NULL, 0, &actualSize);
  28.     if (err == errAEDescNotFound)
  29.         return noErr;
  30.     else if (err == noErr)
  31.         return errAEEventNotHandled;
  32.     else
  33.         return err;
  34. }
  35.  
  36.